#ifndef MODELTODRAW_H
#define MODELTODRAW_H

#include "lib3ds.h"
#include "coldet.h"
#include "string.h"
#include "coldet.h"
#include <QString>

typedef struct {
    Lib3dsFile* model;
    Lib3dsMesh** mesh;
    Lib3dsCamera** camera;
    Lib3dsFace* face;
    Lib3dsLight** light;
    Lib3dsMaterial** material;
    unsigned long total_face;
} object3ds;


class ModelToDraw
{
public:


    object3ds *model;
    CollisionModel3D *collisionmodel;
    double scale;
    double *special;

    ModelToDraw(char *model_name, double scale);
    ~ModelToDraw();

    void forCollision(CollisionModel3D *toaddto, object3ds *todraw, float scaleFactor);
    void getfaces(object3ds *todraw);
    void loadModel(char *name, object3ds *modelling);
    void copyArray(float *source, float *destination, int howmany);
    void scaleIt(float *toscale, float scalex, float scaley, float scalez);
    void updateCollisionModel(double scale);
    void setXYZ(double x, double y, double z);
    double *getMatrix();
    void setMatrix(double *toset);

};

#endif // MODELTODRAW_H
